package com.tongguan.paypos.entity;

import com.google.gson.Gson;

/**
 * Created by Joylive on 2016/12/9 .
 */

public class PayInfo {

    /**
     * message : 支付成功
     * status : 100
     * state : 0
     * wxImgUrl : ""
     * OrderInfo : 100
     */

    private String message;
    private int status;
    private String state;
    private String wxImgUrl;
    private TransInfo OrderInfo;

    public static PayInfo objectFromData(String str) {

        return new Gson().fromJson(str, PayInfo.class);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getState() {
        return state;
    }

    public String getWxImgUrl() {
        return wxImgUrl;
    }

    public void setWxImgUrl(String wxImgUrl) {
        this.wxImgUrl = wxImgUrl;
    }

    public void setState(String state) {
        this.state = state;
    }

    public TransInfo getTransInfo() {
        return OrderInfo;
    }

    public void setTransInfo(TransInfo OrderInfo) {
        this.OrderInfo = OrderInfo;
    }
}
